<template>
  <div class="cover">
    <div class="warp">
      <img :src="config.img ? config.img : '/static/img/success.png'">
      <p>{{config.title}}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: ['config']
}
</script>

<style lang="stylus" scoped>
.cover {
  position: fixed
  top: 0
  left: 0
  right: 0
  bottom: 0
  z-index: 10000
  background: rgba(0,0,0,.4)
  .warp {
    left: 0
    top: 50%
    width: 100%
    position: absolute
    transform: translateY(-50%)
    img {
      width: 156rpx
      height: 156rpx
      margin: 0 auto
    }
    p {
      color: #F88E4E
      font-size: 24rpx
      margin-top: 22rpx
      text-align: center
    }
  }
}

</style>
